package defaultPackage;

import java.awt.Color;
import java.awt.Graphics;

public class HelpMenu 
{
	boolean active = false;
	int textInterval = 16;
	String title = "Help Menu";
	public HelpMenu()
	{
		
	}
	
	public void draw(Graphics g)
	{
		if (active)
		{
			g.setColor(new Color (0,0,0,190));
			g.fillRect(0, 0, MainClass.windowXSize, MainClass.windowYSize);
			g.setColor(Color.cyan);
			g.drawString(title, MainClass.windowXSize / 2 - title.length(), 3*textInterval);
			
			g.setColor(Color.green);
			g.drawString("Press the Shift key to toggle the cursor", 10, 6*textInterval);
			g.drawString("Pressing the P key will pause and unpause the game (you can see if it's paused on the bottom right of the announcement box).", 10, 8*textInterval);
			g.drawString("Designations are for constructing your space station (ie. Interior, Hull, ect.)", 10, 10*textInterval);
			g.drawString("Constructions make buildings such as Life Support systems or Doors", 10, 12*textInterval);
			g.drawString("Doors prevent the movement of oxygen and people when closed", 10, 14*textInterval);
			g.drawString("Pressing escape closes menus (except this one)", 10, 16*textInterval);
			g.drawString("Use the cursor to select people and select destinations for them.", 10, 18*textInterval);
		}
	}
	
	public void setActive(boolean active)
	{
		this.active = active;
	}
	
	public boolean isActive()
	{
		return active;
	}
}
